package baltazar;

import java.awt.BorderLayout;
import javax.swing.JPanel;

public class BaseContent extends JPanel {

	private TopMenu topMenu = new TopMenu(this);
	private BottomBar bottomBar = new BottomBar();
	private ContentArea contentArea = new ContentRecord();

	public BaseContent() {
		setLayout(new BorderLayout());
		setContent(contentArea);
	}
	
	public void setContent(ContentArea cnt) {
		removeAll();
		add(topMenu, BorderLayout.NORTH);
		add(cnt, BorderLayout.CENTER);
		add(bottomBar, BorderLayout.SOUTH);
		revalidate();
	}
}
